<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${dao_package_name}.${table_name}DAO">
  <resultMap id="BaseResultMap" type="${entity_package_name}.${table_name}">
    <id column="${primaryKey}" jdbcType="INTEGER" property="${primaryKey?uncap_first}" />
        <#list model_column as model>
        	<result column="${model.columnName}" jdbcType="${model.columnType}" property="${model.changeColumnName?uncap_first}" />
        </#list>
  </resultMap>
  <sql id="Base_Column_List">
    <#if model_column?exists>
        <#list model_column as model>
        	<#if model_has_next!=true>
				${model.columnName}
			<#else>
				${model.columnName},
			</#if>
        </#list>
    </#if>
  </sql>
</mapper>